package com.xxxy.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author sjh
 * @date 2022/2/27 9:52
 */
@Data
public class QuestionResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "试题id")
    private Integer id;

    @ApiModelProperty(value = "课程")
    private String course;

    @ApiModelProperty(value = "知识点等级")
    private String chapter;

    @ApiModelProperty(value = "知识点等级小点")
    private String chapterPoint;

    @ApiModelProperty(value = "知识点概要")
    private String outline;

    @ApiModelProperty(value = "题目类型(1=选择题，2=判断题，3=填空题)")
    private Integer type;

    @ApiModelProperty(value = "试题内容")
    private String content;

    @ApiModelProperty(value = "试题创建者账号")
    private String creator;

    @ApiModelProperty(value = "试题创建者")
    private String name;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "试题创建时间")
    private Date createTime;

    @ApiModelProperty(value = "难度系数")
    private BigDecimal difficulty;

    @ApiModelProperty(value = "使用次数")
    private Integer usageTimes;

    @ApiModelProperty(value = "准确率")
    private BigDecimal accuracy;

}
